package com.gs.baoleme.controller;

import com.gs.baoleme.domian.Account;
import com.gs.baoleme.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:芯古子
 * @Date:2022/9/13 17:29
 **/
@RestController
public class AccountController {
    @Autowired
    private AccountService service;
    @GetMapping("/test/{id}")
    public Account findById(@PathVariable("id") long id){
        return service.findById(id);
    }
}
